furny.swing.admin.viewer
Interface IModelViewer

All Known Implementing Classes:
ModelViewerState

public interface IModelViewer

Interface for the 3d model viewer.

Since:
12.08.2012
Author:
Stephan Dreyer

Method Summary
 void arrangeText(int width, int height)
          Arrange the text.
 void centerFurniture(boolean save)
          Centers the furniture.
 boolean isRotating()
          Checks if is rotating.
 boolean isShowDirection()
          Checks if is showing direction.
 boolean isShowGrid()
          Checks if is showing grid.
 boolean isShowScaleGrid()
          Checks if is showing scale grid.
 boolean isShowStatistics()
          Checks if is showing statistics.
 boolean isShowUserScaleGrid()
          Checks if is showing user scale grid.
 void rotateFurniture(float rotation, boolean save)
          Rotate furniture.
 void setFurniture(Furniture furn)
          Method to set a furniture to view.
 void setRotating(boolean rotating)
          Sets the rotating flag.
 void setShowDirection(boolean showDirectionArrow)
          Sets the show direction flag.
 void setShowGrid(boolean show)
          Sets the show grid flag.
 void setShowScaleGrid(boolean showScaleGrid)
          Sets the show scale grid flag.
 void setShowStatistics(boolean showStatistics)
          Sets the show statistics flag.
 void setShowUserScaleGrid(boolean showUserScaleGrid)
          Sets the show user scale grid flag.
 

Method Detail

setShowGrid

void setShowGrid(boolean show)
Sets the show grid flag.

Parameters:
show - show grid
Since:
12.08.2012

isShowGrid

boolean isShowGrid()
Checks if is showing grid.

Returns:
true, if is showing grid
Since:
12.08.2012

isRotating

boolean isRotating()
Checks if is rotating.

Returns:
true, if is rotating
Since:
12.08.2012

setRotating

void setRotating(boolean rotating)
Sets the rotating flag.

Parameters:
rotating - the new rotating flag
Since:
12.08.2012

setShowStatistics

void setShowStatistics(boolean showStatistics)
Sets the show statistics flag.

Parameters:
showStatistics - the new show statistics flag
Since:
12.08.2012

isShowStatistics

boolean isShowStatistics()
Checks if is showing statistics.

Returns:
true, if is showing statistics
Since:
12.08.2012

setFurniture

void setFurniture(Furniture furn)
Method to set a furniture to view.

Parameters:
furn - The furniture to view.
Since:
12.08.2012

arrangeText

void arrangeText(int width,
                 int height)
Arrange the text.

Parameters:
width - the width of the viewer.
height - the height of the viewer.
Since:
12.08.2012

isShowScaleGrid

boolean isShowScaleGrid()
Checks if is showing scale grid.

Returns:
true, if is showing scale grid
Since:
12.08.2012

setShowScaleGrid

void setShowScaleGrid(boolean showScaleGrid)
Sets the show scale grid flag.

Parameters:
showScaleGrid - the new show scale grid flag.
Since:
12.08.2012

isShowUserScaleGrid

boolean isShowUserScaleGrid()
Checks if is showing user scale grid.

Returns:
true, if is showing user scale grid
Since:
12.08.2012

setShowUserScaleGrid

void setShowUserScaleGrid(boolean showUserScaleGrid)
Sets the show user scale grid flag.

Parameters:
showUserScaleGrid - the new show user scale grid flag.
Since:
12.08.2012

isShowDirection

boolean isShowDirection()
Checks if is showing direction.

Returns:
true, if is showing direction
Since:
12.08.2012

setShowDirection

void setShowDirection(boolean showDirectionArrow)
Sets the show direction flag.

Parameters:
showDirectionArrow - the new show direction flag.
Since:
12.08.2012

centerFurniture

void centerFurniture(boolean save)
Centers the furniture.

Parameters:
save - Save the change if true.
Since:
12.08.2012

rotateFurniture

void rotateFurniture(float rotation,
                     boolean save)
Rotate furniture.

Parameters:
rotation - the amount of rotation.
save - Save the change if true.
Since:
12.08.2012